SftTree/OCX 7.0

SftTree.ColumnBackColor Property

Softel vdm, Inc.

Defines the background color of cells in the specified column.

Deprecated - Provided for compatibility with earlier versions only - Use Column.BackColor instead

Syntax       

Get

VB.NET

Clr = object.get_ColumnBackColor(ByVal ColIndex As Short)  As System.Drawing.ColorLanguage-specific information

VB

Clr = object.ColumnBackColor(ByVal ColIndex As Integer)  As OLE_COLOR

C#.NET

System.Drawing.ColorLanguage-specific information Clr = object.get_ColumnBackColor(short ColIndex);

VC++

OLE_COLOR Clr = object->ColumnBackColor[short ColIndex];
OLE_COLOR Clr = object->GetColumnBackColor(short ColIndex);

C

HRESULT object->get_ColumnBackColor(short ColIndex, OLE_COLOR* Clr);

Delphi

Clr := object.ColumnBackColor[ColIndex : Smallint]  : TColor;

Put

VB.NET

object.set_ColumnBackColor(ByVal ColIndex As Short, ByVal Clr As System.Drawing.ColorLanguage-specific information)

VB

object.ColumnBackColor(ByVal ColIndex As Integer) = Clr  As OLE_COLOR

C#.NET

void object.set_ColumnBackColor(short ColIndex, uintLanguage-specific information Clr);

VC++

OLE_COLOR object->ColumnBackColor[short ColIndex] = Clr;
void object->PutColumnBackColor(short ColIndex, OLE_COLOR Clr);

C

HRESULT object->put_ColumnBackColor(short ColIndex, OLE_COLOR Clr);

Delphi

object.ColumnBackColor[ColIndex : Smallint] := Clr  : TColor;

object

A SftTree object.

ColIndex

The zero-based column number.

Clr

Defines the background color of cells in the specified column.  The valid range for a color value is 0 to 16,777,215 (&HFFFFFF).  The high order byte of a number in this range equals 0; the lower 3 bytes, from least to most significant byte, determine the amount of red, green, and blue, respectively.  The red, green, and blue components are each represented by a number between 0 and 255 (&HFF).  If the high byte is not 0, the system colors as defined in Control Panel's settings are used.  See your development environment's documentation for color constants.

Comments

Deprecated - Provided for compatibility with earlier versions only - Use Column.BackColor instead

The ColumnBackColor property defines the background color of cells in the specified column ColIndex of items that are not selected.

Cells can override the background color using the Cell.BackColor property.  If a selected item uses a selection style (Items.SelectStyle property) that uses the Column.SelectBackColor property for only portions of the item, the Column.BackColor property is used for the remainder of the item.

See Also  SftTree Object | Object Hierarchy


Feedback / comments / error reports for this topic
© 2015 - Softel vdm, Inc. - www.softelvdm.com